import Layout from '@/components/core/layout'

const router = {
  path: '/system',
  name: 'system',
  meta: {
    title: 'system',
    icon: 'mdi-settings',
  },
  component: Layout,
  redirect: '/system/datadict',
  children: [
    {
      path: 'datadict',
      name: 'dictionary',
      component: () => import('@/views/system/datadict'),
      meta: {
        title: 'dictionary'
      }
    },
    {
      path: 'lang',
      name: 'lang',
      component: () => import('@/views/system/lang'),
      meta: {
        title: 'lang'
      }
    },
    {
      path: 'organization',
      name: 'organization',
      redirect: '/organization/user',
      component: () => import('@/components/emtry'),
      meta: {
        title: 'organization'
      },
      children: [
        {
          path: 'user',
          name: 'user',
          component: () => import('@/views/system/organization/user'),
          meta: {
            title: 'user'
          }
        },
        {
          path: 'role',
          name: 'role',
          component: () => import('@/views/system/organization/role'),
          meta: {
            title: 'role'
          }
        },
        {
          path: 'department',
          name: 'department',
          component: () => import('@/views/system/organization/department'),
          meta: {
            title: 'department'
          }
        },
      ]
    }
  ]
}

export default router
